include "ServiceBase.thrift"

namespace cpp jztzp
namespace java com.jztzp

service FavoriteService extends ServiceBase.ServiceBase {
  i32 Add(1: i32 member, 2: i32 article);
  i32 Remove(1: i32 member, 2: i32 article);

  // 取用户喜欢的文章列表
  list<i32> GetMemberFavoriteArticles(1: i32 member);

  // 取喜欢文章的用户列表
  list<i32> GetArticleFavoriteMembers(1: i32 article);
}

